package com.paireach.bw.activity;

import android.os.Build;
import android.os.Bundle;
import android.transition.Transition;
import android.transition.TransitionInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;

import com.paireach.bw.R;
import com.paireach.bw.base.BaseActivity;

/**
 * Title: AboutUsActivity
 * Description: 个人中心的关于我们页面
 * company: 上海双至
 */
public class AboutUsActivity extends BaseActivity {

    private TextView layout_top_change;
    private ImageView layout_top_back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (Build.VERSION.SDK_INT >= 21) {
            getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS);
            Transition slide_bottom = TransitionInflater.from(this).inflateTransition(android.R.transition.slide_bottom);
            getWindow().setEnterTransition(slide_bottom);
        }

        setContentView(R.layout.activity_aboutus);
        initView();
        layout_top_back.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });
    }

    private void initView() {
        layout_top_change = (TextView) findViewById(R.id.layout_top_change);
        layout_top_change.setText("关于我们");
        layout_top_back = (ImageView) findViewById(R.id.layout_top_back);
    }
}
